﻿@model MvcApplication2.Controllers.SearchExercisesViewModel
@{
    
}
<div class="page-header">
    <h2>
        Search Exercises <small>Find work</small></h2>
</div>

<div class="row well">
    <dl class="dl-horizontal">
        <dt><strong>Filtered By </strong></dt>
        <dt>Language</dt>
        <dd>@Model.LanguagesFiltered</dd>
        <dt>Target Device</dt>
        <dd>@Model.TargetDevice</dd>
        <dt>Screencapture</dt>
        <dd>@Model.CanScreenCapture</dd>
        <dt>Webcam</dt>
        <dd>@Model.CanWebcamRecording</dd>
    </dl>
</div>
@{        
   
    var grid = new WebGrid(source: Model.Exercises,
                 defaultSort: "Title",
                 rowsPerPage: 25);
    grid.Pager(WebGridPagerModes.All);
}
<div class="row well " >
    @grid.GetHtml(
        tableStyle: "table table-condensed",
        columns: grid.Columns(
            grid.Column(columnName: "Title", format: (item) => Html.ActionLink((string) item.Title, "ExerciseDetails", "Developer", new {id = item.ExerciseId}, null), canSort: true),
            grid.Column("OwnerName", "Owner"),
            grid.Column("DeviceName", "Device"),
            grid.Column("ProposalSendedMessage", " "),
            grid.Column(format: (item) => Html.ActionLink("SendProposal", "SendProposal", new { id = item.ExerciseId }, new { @class = "btn btn-primary btn-mini" })))
           )
</div>